ShortcutsIndex where);
static int shortcut_find_position (GtkFileChooserDefault *impl,
GFile *file);
-#endif
static void bookmarks_check_add_sensitivity (GtkFileChooserDefault *impl);
+#endif
static gboolean list_select_func (GtkTreeSelection *selection,
GtkTreeModel *model,
}
else if (request->type == SHORTCUTS_CURRENT_FOLDER)
{
+#if REMOVE_FOR_PLACES_SIDEBAR
/* Remove the current folder separator */
gint separator_pos = shortcuts_get_index (request->impl, SHORTCUTS_CURRENT_FOLDER_SEPARATOR);
shortcuts_remove_rows (request->impl, separator_pos, 1);
+#endif
}
goto out;
if (model_cancellable)
g_object_unref (model_cancellable);
}
+#endif
/* FIXME: GtkFileSystem needs a function to split a remote path
* into hostname and path components, or maybe just have a
return label;
}
+#if REMOVE_FOR_PLACES_SIDEBAR
/* Inserts a path in the shortcuts tree, making a copy of it; alternatively,
* inserts a volume. A position of -1 indicates the end of the tree.
*/
g_signal_emit_by_name (impl, "current-folder-changed", 0);
check_preview_change (impl);
+#if REMOVE_FOR_PLACES_SIDEBAR
bookmarks_check_add_sensitivity (impl);
+#endif
g_signal_emit_by_name (impl, "selection-changed", 0);
path_bar_update (impl);
check_preview_change (impl);
+#if REMOVE_FOR_PLACES_SIDEBAR
bookmarks_check_add_sensitivity (impl);
+#endif
check_copy_file_location_sensitivity (impl);
g_signal_emit_by_name (impl, "selection-changed", 0);
static void
desktop_folder_handler (GtkFileChooserDefault *impl)
{
+#if REMOVE_FOR_PLACES_SIDEBAR
if (impl->has_desktop)
switch_to_shortcut (impl, shortcuts_get_index (impl, SHORTCUTS_DESKTOP));
+#endif
}
/* Handler for the "search-shortcut" keybinding signal */
{
if (impl->has_search)
{
+#if REMOVE_FOR_PLACES_SIDEBAR
switch_to_shortcut (impl, shortcuts_get_index (impl, SHORTCUTS_SEARCH));
+#endif
/* we want the entry widget to grab the focus the first
* time, not the browse_files_tree_view widget.
static void
recent_shortcut_handler (GtkFileChooserDefault *impl)
{
+#if REMOVE_FOR_PLACES_SIDEBAR
switch_to_shortcut (impl, shortcuts_get_index (impl, SHORTCUTS_RECENT));
+#endif
}
static void
if (bookmark_index < 0 || bookmark_index >= impl->num_bookmarks)
return;
+#if REMOVE_FOR_PLACES_SIDEBAR
bookmark_pos = shortcuts_get_index (impl, SHORTCUTS_BOOKMARKS) + bookmark_index;
+#endif
path = gtk_tree_path_new_from_indices (bookmark_pos, -1);
#if REMOVE_FOR_PLACES_SIDEBAR